<?php /* Smarty version 2.6.19, created on 2010-11-01 16:31:59
         compiled from lei4_index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'urlpro', 'lei4_index.html', 8, false),array('modifier', 'showpic', 'lei4_index.html', 8, false),array('modifier', 'cutstr', 'lei4_index.html', 11, false),array('modifier', 'getcolorw', 'lei4_index.html', 11, false),)), $this); ?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['plei4']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
          <?php if ($this->_sections['i']['rownum']%7 == 1): ?>
            <tr>
            <?php endif; ?>
              <td onmouseover="this.style.backgroundColor='#e4e3e3' " onmouseout="this.style.backgroundColor=''" style="padding-bottom:1px"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                    <td height="160" align="center" valign="bottom"  ><a href="<?php echo ((is_array($_tmp='book_show')) ? $this->_run_mod_handler('urlpro', true, $_tmp, $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['rootid']) : smarty_modifier_urlpro($_tmp, $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['rootid'])); ?>
"><img src="<?php echo ((is_array($_tmp=$this->_tpl_vars['plei4'][$this->_sections['i']['index']]['pic'])) ? $this->_run_mod_handler('showpic', true, $_tmp) : smarty_modifier_showpic($_tmp)); ?>
" width="105" height="150" style=" border:solid 1px #CCC; padding:3px;"  title='<?php echo $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['topicname']; ?>
'/></a></td>
                </tr>
                  <tr>
                    <td align="center" style="padding-top:5px"><a href="<?php echo ((is_array($_tmp='book_show')) ? $this->_run_mod_handler('urlpro', true, $_tmp, $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['rootid']) : smarty_modifier_urlpro($_tmp, $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['rootid'])); ?>
" target="_blank"><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['plei4'][$this->_sections['i']['index']]['topicname'])) ? $this->_run_mod_handler('cutstr', true, $_tmp, 6) : smarty_modifier_cutstr($_tmp, 6)))) ? $this->_run_mod_handler('getcolorw', true, $_tmp, $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['colorstr'], $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['weightstr']) : smarty_modifier_getcolorw($_tmp, $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['colorstr'], $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['weightstr'])); ?>
</a></td>
                  </tr>
                  <tr>
                    <td align="center"><?php echo $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['a1']; ?>
</td>
                  </tr>
                  <tr>
                    <td align="center" style="color:#F00;"></td>
                  </tr>
                  <tr>
                    <td align="center"><table width="90%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td align="center"><a href="<?php echo ((is_array($_tmp='book_show')) ? $this->_run_mod_handler('urlpro', true, $_tmp, $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['rootid']) : smarty_modifier_urlpro($_tmp, $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['id'], $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['rootid'])); ?>
">详细</a></td>
                        <td align="center"><?php if ($this->_tpl_vars['plei4'][$this->_sections['i']['index']]['price_free'] == '0'): ?><a href="javascript:;" onclick="addcart('<?php echo $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['id']; ?>
','<?php echo $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['codeid']; ?>
',1,'')">购买</a><?php else: ?>免费<?php endif; ?></td>
                        <td align="center"><a href="uc_download.php?gid=<?php echo $this->_tpl_vars['plei4'][$this->_sections['i']['index']]['codeid']; ?>
">下载</a></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td align="center" height="5"> </td>
                  </tr>
          </table></td>  <?php if ($this->_sections['i']['rownum']%7 != 0): ?> <td align="left" valign="top" style=" background-image: url(skins/stlye/images/dd_07.jpg);
background-repeat:repeat-y;">&nbsp;</td>
                <?php else: ?>
            </tr>
            <?php endif; ?><?php endfor; endif; ?>
          </table>